Five excellent PHP code reconstruction tools and five php code reconstruction tools are recommended. Five excellent PHP code refactoring tools are recommended. in software engineering, the word refactoring code usually refers to modifying the source code without changing the external behavior of the code. Five excellent PHP code reconstruction tools and five php code reconstruction tools are recommended.
I
from the old to new only.
The above points are I actually encountered in the development project process, welcome to add.
More interested in PHP related content readers can view the topic: "PHP Basic Grammar Introductory Tutorial", "PHP Object-oriented Programming tutorial" and "PHP Excellent Development Framework Summary"
I hope this article is helpful to you in PHP programming.
Articles you may be inter
PHP: refactoring-improving the design of existing code-4 simplified conditional expressions. Click the mind map to view the big chart. The introduction of conditional logic may be very complicated. Therefore, this chapter provides some refactoring techniques to simplify them. Full text description (you can direct mind map
Click to view the chart.
The introduction of conditional logic may be very complicate
temporary variables
*extract: Extract-I personally prefer to translate into "refinement"
*duplicate: Copy
Split: Anatomy
Variable: variable
Factor: Factor, factor
Refactoring Principles
First, what is refactoring?
Noun form: An adjustment to the internal structure of software, in order to improve its understandable type and reduce its modification cost without changing the observed behavior of software.
PHP code maintenance, refactoring, and four causes analysis. There are four reasons for PHP code maintenance and difficulty in refactoring, and four reasons for this analysis. This article describes four reasons for PHP code maintenance and difficulty in refactoring. I would like to share it with you for your reference, for example, PHP code maintenance, four rea
This tutorial from: inspiks.com If you want to reprint, please be sure to hyperlink form annotated: From the vitality of the box site and the original source. Limited level, translation is inevitable wrong, please have a friend to give points to facilitate more friends to read.
Refactoring a product in Photoshop is a big challenge, but it's also fun. Today we're going to refactor Apple's most beautiful r
PHP talks about refactoring-improving the design of existing code-5 simplifying function calls. The mind map introduces several articles in the previous series. I pay more attention to one of PHP's Miscellaneous "refactoring-improving the design of existing code" to reorganize your function, but I don't think I can clarify the mind map.
Introduction
Which of the first few articles I pay more attention?
)--general refers to temporary variables
*extract: Extract-I personally prefer to translate into "refinement"
*duplicate: Copy
Split: Anatomy
Variable: variable
Factor: Factor, factor
Refactoring Principles
First, what is refactoring?
Noun form: An adjustment to the internal structure of software, in order to improve its understandable type and reduce its modification cost without changing the observe
Mind Mapping
Introduced
Re-organize your functions in the "refactoring-improve existing code Design" section of PHP above, and continue to talk about refactoring.
Professional terminology
Delegate: Delegate
Encapsulate: Package
Introduce: Introducing
Objective
"Deciding where to put the blame"-using refactoring to change the original desig
PHP Miscellaneous refactoring-improving the design of existing code-2 moving between objects. Mind Map Index: MoveMethod (shift function) MoveField (shift value field) ExtractClass (Extract class) InlineClass (class inassociation, is to merge the current class into other mind map
Index:Ø Move Method (shift function) Ø Move Field (shift value Field) Ø Extract Class (Extract Class) Ø Inline Class (concatenate Class, is to merge the current class to ot
Code refactoring is sometimes tedious, and string substitution is not only tedious, but also error-prone, with some tools available, PHP for example, REPHACTOR,SCISR and so on, but ready-made tools often mean inflexible So today I'm going to talk about the application of shell in code refactoring.
First of all, let's say we want to replace all the Foo_bar in the php file with Foobar, so we can do the follo
As PHP transforms from a simple scripting language into a mature programming language, the complexity of a typical PHP application's code base increases. To control the support and maintenance of these applications, we can use a variety of test tools to automate the process. One is unit testing, which allows you to directly test the correctness of the code you write. However, the usual legacy code base is not suitable for this kind of testing. This article describes
Mind Mapping
IntroducedTake the following PHP talk about refactoring-improving the design of existing code to reorganize your function to continue refactoring. This chapter focuses on the reconstruction of data. 1. The voice of controversy-access field directly or through a function (Accessor)
2. Modify the array to object: When you see an array that resembles a data structure, you can use the Replace arra
Mind Mapping
Index:Ømove Method (removal function) Ømove Field (move range) Øextract Class (Refinement Class) Øinline class (inline class, that is, merge the current class into another class) Øhide Delegate (hidden delegate relationship) Ø Remove middle man (remove middleman) Øintroduce Foreign Method (Introducing an additional function) Øintroduce local Extension (introduction of local extensions) introduction to the above-mentioned PHP "refactoring
iteration.If most back-end service uses this structure, then the problem is that all the service needs to go through: Open cache, take parameters, get data, JSON transform, close the cache this series of processes. And in all the process, the other processes are the same except for the logic to get the data. There is a lot of repetitive logic in the code, and even a "copy-and-paste" feel, which is a serious violation of the dry principle (Don ' t Repeat yourself). Therefore, it is necessary to
Let's look back at the Javascript scripts, which are not well written and too complicated. I have extracted and reconstructed them. If you want to learn about javascript refactoring, I can refer to this article. I am going to help you with some tutorials on how to use asp.net with Javascript today. Now let's look back at the Javascript scripts, which are not well written and too complicated. Extracted and reconstructed.
Previous 1:
The Code is as f
Use and refactoring shortcuts of Eclipse refactoring function, and eclipse refactoringWhat is refactoring? After the code is written, improve its design.Reconstruction classification: physical structure, class hierarchy, and class internal structure.
Name
Shortcut Key
Literal Translation
Scope
Description
Rename
Alt + Shift + R
Reproduced from: http://blog.csdn.net/lovelion/article/details/17970147
In 2009, Sean Chambers published an article in his blog about the refactoring:useful Refactoring techniques have to know series, which is published every day to introduce a A kind of reconstruction means, 31 consecutive articles, so the name "reconstructed 31 days: You should master the means of refactoring." In addition, Sean chambers
Creating strong support for refactoring is one of the most important reasons software developers love Eclipse. And Eclipse has an advantage that is at least as good as refactoring, and that is its near-unassailable scalability. The combination of the two means that we can create new refactoring capabilities based on our own needs.
introduce
Refactoring is something that must be done after the project is done to a certain extent. Code refactoring can improve existing code design and enhance the extensibility and maintainability of existing projects. As the needs of the project continue to iterate and the requirements are constantly being updated, the code we write in the project is always changing. In a new requirement, you add some feature mod
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.